<%= provide(:title, "Create Item") %>
<%= form_for :item, :url => { :action => "create" }, :html => {:class => "nifty_form form-horizontal", :multipart => true} do |f| %>
  <legend>Create Item</legend>
  <div class="control-group">
	<label for='title' class='control-label'>Title</label>
	<div class="controls">
	  <%= f.text_field :title, :id  => "title"%>
	</div>
  </div>
  <div class="control-group">
	<label for='price' class='control-label'>Price</label>
	<div class="controls">
	  <%= f.text_field :price, :id  => "Price", :class => "input-small" %> €
	</div>
  </div>
  <div class="control-group">
	<label for='sending' class='control-label'>Sending</label>
	<div class="controls">
	  <%= f.check_box :sending, :id  => "sending", :class => "input-small" %>
	</div>
  </div>
  <div class="control-group">
	<label for='negociate' class='control-label'>Negociate</label>
	<div class="controls">
	  <%= f.check_box :negociate, :id  => "negociate", :class => "input-small" %>
	</div>
  </div>
  <div class="control-group">
	<label class="control-label">Is it a product or a service ?</label>
	<div class="controls">
	  <label class="radio inline">
		<%= f.radio_button(:product, true, :checked => true) %> Product
	  </label>
	  <label class="radio inline">
		<%= f.radio_button(:product, false)%> Service
	  </label>
	</div>
  </div>
  <div class="control-group">
	<label for='image' class='control-label'>Upload an image</label>
	<div class="controls">
		<%= f.file_field :picture, :id  => "image", :class => "input-file" %>
	</div>
  </div>
  <div class="control-group">
	<label for='description' class='control-label'>Description</label>
	<div class="controls">
	  <%= f.text_area :description, :id  => "description", :class => "input-xlarge", :rows => "3" %>
	  </div>
  </div>
  <div class="form-actions">
	<%= f.submit "Create", :class  => "btn" %>
  </div>
<% end %>